/*** 
 * @Author: Yanan Chen
 * @Date: 2021-11-02 13:47:03
 * @LastEditTime: 2022-01-10 14:09:22
 * @LastEditors: Yanan Chen
 * @Description: 
 * @FilePath: \sadwinner\fw\esp32\Src\APP\app_cloud.h
 * @
 */
#ifndef PRJ_APP_CLOUD_H
#define PRJ_APP_CLOUD_H

#include "hal_function.h"
#include "aws_iot_mgr.h"


enum class MQTT_STATUS
{
    Connect,
    Disconnect,
};

class AppCloud
{
public:
    AppCloud(){}
    ~AppCloud(){};
    static void threadCreate();
private:
    //thread 
    static TaskHandle_t  taskHandle;
    static TimerHandle_t timerHandle;
    static void thread(void *a);
    static void threadtimeCallback(TimerHandle_t handle);
    // 
    
};

extern AppCloud CloudObj;
#endif